package com.neouton.crm.product.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.neouton.common.entity.BaseEntityVO;
import com.neouton.crm.supplier.entity.SupplierVO;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @Author LiBingkun
 * @Date 2022/8/30 16:02
 * @Version 1.0
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ProductInfoVO extends BaseEntityVO implements Serializable {
    /**
     * 产品id
     */
    private Integer productId;

    /**
     * 工作流ID
     */
    private Integer businessId;

    /**
     * 产品类别
     */
    private Integer productCategory;

    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    private String productName;

    /**
     * 产品型号
     */
    @Excel(name = "产品型号")
    private String productModel;

    /**
     * 产品功能
     */
    @Excel(name = "产品功能")
    private String productFunction;
    /**
     * 产品领域
     */
    @Excel(name = "产品领域")
    private String productField;
    /**
     * 客户场景
     */
    @Excel( name = "应用场景")
    private String productScene;
    /**
     * 优先级
     * 3-高
     * 2-中
     * 1-低
     */
    private Integer productPriority;

    /**
     * 优先级汉字，用于导出excel
     */
    @Excel(name = "优先级")
    private String productPriorityStr;
    /**
     * 产品单位
     */
    private Integer productUnit;

    /**
     * 成本价
     */
    private BigDecimal productCostPrice;

    @Excel( name = "成本价")
    private String productCostPriceStr;

    /**
     * 销售价
     */
    private BigDecimal productSalesPrice;

    @Excel( name = "销售价")
    private String productSalesPriceStr;

    /**
     * 状态
     * 可用-1
     * 禁用-0
     */
    private Integer status;

    /**
     * 审批状态
     * 0已提交
     * 1已通过
     * 2已驳回
     */
    private Integer approvalStatus;

    /**
     * 审批状态
     * 0已提交
     * 1已通过
     * 2已驳回
     */
    private Timestamp appLastTime;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

    /**
     * 供应商信息
     */
    private SupplierVO supplier;

    /**
     * 产品类型，用于导出
     */
    @Excel(name = "产品类别")
    private String productCategoryStr;

    /**
     * 产品单位，用于导出
     */
    @Excel( name = "产品单位")
    private String productUnitStr;

    /**
     * 产品品牌
     */
    @Excel( name = "产品品牌")
    private String productBrand;

    /**
     * 审批ID
     */
    private Integer approvalId;
    /**
     * 审批ID
     */
    private String approvalCode;


    /**
     * 申请原因
     */
    private String reason;

    /**
     * 审批意见
     */
    private String appReason;

    /**
     * 审批意见
     */
    private Integer nextApprover;

    private String operationType;

    /**
     * 前端排序标识
     */
    private String orderByColum;

    private String orderByProp;

    private String order;

    /**
     * 申请数量
     */
    private Integer count;


    /**
     * 审批意见
     */
    private String opinion;

    /**
     * 关联一指禅
     */
    private Integer isOneFinger;
}

